package com.weitu.occupationalHealth.hseService.service.impl;

import com.weitu.occupationalHealth.hseService.entity.HseServiceOrg;
import com.weitu.occupationalHealth.hseService.mapper.HseServiceOrgMapper;
import com.weitu.occupationalHealth.hseService.service.HseServiceOrgService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by WT-SUN on 2017/4/1.
 */
@Service
public class HseServiceOrgServiceImpl implements HseServiceOrgService {
    @Autowired
    private HseServiceOrgMapper hseServiceOrgMapper;

    @Override
    public int insertSelective(HseServiceOrg record) {
        return hseServiceOrgMapper.insertSelective(record);
    }

    @Override
    public Map selectById(@Param("id") String id) {
        return hseServiceOrgMapper.selectById(id);
    }

    @Override
    public int updateByIdSelective(HseServiceOrg record) {
        return hseServiceOrgMapper.updateByIdSelective(record);
    }

    @Override
    public List<Map> selectAllServiceOrg(Map map) {
        return hseServiceOrgMapper.selectAllServiceOrg(map);
    }

    @Override
    public int selectServiceOrgCount(Map map) {
        return hseServiceOrgMapper.selectServiceOrgCount(map);
    }

    @Override
    public int deleteById(String id) {
        return hseServiceOrgMapper.deleteById(id);
    }
}
